<?php
$menuTree = array(
	12 => array('title'=>'wedding', 'id'=>12, 
		'items' => array(
			0 => array('title'=>'Wedding Bands', 'id'=>12),
			1 => array('title'=>'Engagement Rings', 'id'=>13),
		)
	),
	14 => array('title'=>'wedding1', 'id'=>14, 
		'items' => array(
			0 => array('title'=>'Wedding Bands1', 'id'=>14),
			1 => array('title'=>'Engagement Rings1', 'id'=>15),
		)
	),
);

function get_left_menu($task='list', $id=0){
	global $menuTree;
	if($task == 'list'){
		$sectionId = 0;
		$catId = 0;
		foreach($menuTree as $i => $section){
			foreach($section['items'] as $j => $item){
				if($item['id'] == $id){
					$sectionId = $section['id'];
					$catId = $item['id'];
					break;
				}
			}
		}
	}else{
		
	}
}